/**
 *Copyright (c) 2024 watereyes
 * safetymanagement is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.system.bean;

import com.koron.system.domain.District;
import com.koron.system.domain.DistrictCorpRelation;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;

@ApiModel(value = "片区和片区与水司之间的关联",description = "片区和片区与水司之间的关联实体类")
public class DistrictAndCorp {
    @ApiModelProperty(name = "district",value = "片区信息",required = true)
    private District district;
    @ApiModelProperty(name = "districtCorpRelationList",value = "片区下关联的水司",required = false)
    private List<DistrictCorpRelation> districtCorpRelationList;

    public District getDistrict() {
        return district;
    }

    public void setDistrict(District district) {
        this.district = district;
    }

    public List<DistrictCorpRelation> getDistrictCorpRelationList() {
        return districtCorpRelationList;
    }

    public void setDistrictCorpRelationList(List<DistrictCorpRelation> districtCorpRelationList) {
        this.districtCorpRelationList = districtCorpRelationList;
    }

    @Override
    public String toString() {
        return "DistrictAndCorp{" +
                "district=" + district +
                ", districtCorpRelationList=" + districtCorpRelationList +
                '}';
    }
}
